class Strategy:
    def __init__(self):
        self.repo = None

    def onAttach(self, repo):
        self.repo = repo

    def onKlineStep(self, index, context):
        """
        :param index: 当前数据的索引
        :param context: 容器上下文
        :return:
        """
        ### 以下是策略逻辑
        print(f'onKlineStep ,index = {index}')

